import * as api from '../../services/example'
import { routerRedux } from 'dva/router'
export default {
  namespace: 'login',
  state: {
  },
  reducers: {
  },
  effects: {
    * login ({ payload = {} }, { call, put, select }) {
      yield put(routerRedux.push('/index'))
      // yield put({type: 'loading', payload: {flag: true}})
      // const {data} = yield call(api.queryList)
      // yield put({type: 'querySuccess', payload: {data: data.respDataAll}})
    }
  },
  subscriptions: {
    setup ({ dispatch, history }) {
      history.listen((location) => {
      })
    }
  },
};
